function plotTemporalData(handles,Curve)

contents2 = get(handles.listboxAtlasList,'String');

if handles.NormalSynch
    F = ', normalized';
else
    F = '';
end

curveType{1} = 'Mean';
curveType{2} = 'Median';
if handles.Synch == 1
    mapType = ' temporal inter-subject synchronization, ';
    %    T = (1/handles.Pub.samplingFrequency)*(1:size(Curve,1));
    T = 1:size(Curve,1);
    XLab = 'Time interval';
else
    mapType = ' inter-subject phase synchronization, ';
    T = (1/handles.Pub.samplingFrequency)*(1:size(Curve,1));
    XLab = 'Time (s)';
end
HH = [curveType{handles.ROIcurve} mapType handles.bandNames{handles.freqBand} ', session ' num2str(handles.dataset) F];
figure,plot(T,Curve,'LineWidth',2);title(HH);legend(contents2);xlabel(XLab);xlim([1 T(end)]);grid on;zoom on
%if handles.Synch == 1
%    set(gca,'XTickLabel',handles.intVals)
%end